package com.fqgj.sentry.controller.antiFraud.response.anti.relation;

import java.io.Serializable;
import java.util.Random;

/**
 * Created by liupengpeng on 2017/10/17.
 */
public class Link implements Serializable {
    private String source;
    private String target;

    private String lineColor;
    //0：实线  1：虚线
    private Integer lineType = new Random().nextInt(2);

    public Link(String start, String end, String lineColor) {
        this.source = start;
        this.target = end;
        this.lineColor = lineColor;
    }

    public Link(String start, String end, String lineColor, Integer lineType) {
        this.source = start;
        this.target = end;
        this.lineColor = lineColor;
        this.lineType = lineType;
    }

    public String getSource() {
        return source;
    }

    public Link setSource(String source) {
        this.source = source;
        return this;
    }

    public String getTarget() {
        return target;
    }

    public Link setTarget(String target) {
        this.target = target;
        return this;
    }

    public String getLineColor() {
        return lineColor;
    }

    public Link setLineColor(String lineColor) {
        this.lineColor = lineColor;
        return this;
    }

    public Integer getLineType() {
        return lineType;
    }

    public Link setLineType(Integer lineType) {
        this.lineType = lineType;
        return this;
    }
}
